
<script type="text/javascript" src="<?php echo RESOURCE_URL;?>/common/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_URL;?>/common/jquery.mousewheel.js"></script>

<link rel="stylesheet" href="<?php echo RESOURCE_URL;?>/build/kalendae.css" type="text/css">
<script type="text/javascript" src="<?php echo RESOURCE_URL;?>/build/kalendae.standalone.js"></script>

<style>
    *{margin: 0;padding: 0;}
    .system{
        /*width:25%;*/
        background-color: #ffffff;
    }
    .system h1{
        font-size: 16px;
        color: #000000;
        font-weight: normal;
        margin: 0;
    }
    .title{
        height:40px;
    }
    .fr{
        float: right;
    }
    .info{
        background-color: #E6E6E6;
        border-radius: 3px;
        margin: 10px;
        width: 95%;
    }
    .color-green{
        background-color: green;
        color: #ffffff;
        font-size: 14px;

    }
    .info_detail h1{
        font-size: 14px;
        font-weight: normal;
    }
    .info_detail h1>span{color: #333333;margin-left: 8px;}
    .info_detail p{
        font-size: 12px;
        line-height: 14px;
        color: #000000;

    }
    .money{
        border-bottom: 1px solid #3F3D40;
        height: 40px;

    }
    .money>span{
        font-size: 15px;
        border: 1px solid orange;
        color: orange;
        border-radius: 3px;
        line-height: 14px;
        margin-top: 10px;
        display: inline-block;
        margin-left: 10px;
    }
    .money_de{
        font-size: 12px;
        display: inline-block;
        padding-right: 20px;
    }
    .money_de>span{color: red;}
    .money_de>span>i{font-size: 16px;font-style: normal;}
    .footer{height: 30px;}
    .footer>span:first-child{
        color: #005ceb;
        font-size: 14px;
    }
    .footer>.color-orange{
        font-size: 16px;
        color: orange;
        margin-left: 5rem;
    }
    .footer>button:first-child{
        background-color: #005ceb;
        color: #ffffff;
    }
    .footer>button:last-child{
        background-color: #ffffff;
        color: #000000;
    }
    .remind{
        padding-right: 20px;
    }
    .member{
        padding-right: 20px;
    }
    .btn{
        height:30px;
        width:100px;
    }
    .title>.new{display: inline-block;width: 60px;line-height: 20px;font-size: 14px;border: 1px solid #005ceb;color: #005ceb;
    text-align: center;margin: 0 20px 10px 0;border-radius: 5px;}
</style>

<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3><?php echo $lang['dashboard_wel_system_info'];?></h3>
    </div>
  </div>
  <div class="fixed-empty"></div>

  <div class="info-panel">

  <dl class="system">
    <?php if($output['super'] || in_array("hotel",$output['my_permission'])){ ?>
        <?php if(($output['admin_info']['merchant_id'])){ ?>
            <?php if($output['hotel_un_operation']){ ?>
                    <div class="title">
                        <h1><samp class="hotel_un_operation"><?=$output['hotel_un_operation']?></samp>张未处理订单</h1>
                        <span class="new fr"><a href="#">刷新</a></span>
            <span class="fr remind">
                <input name="remind_message" class="remind_message" id="remind_message" type="checkbox" <?php echo $output['admin_info']['remind_message']?'checked':'' ?> />弹窗提醒
                <input name="remind_voice" type="checkbox" id="remind_voice" class="remind_voice" <?php echo $output['admin_info']['remind_voice']?'checked':'' ?> />开启声音提醒
            </span>
                    </div>
                    <div class="info">
                        <div class="color-green">酒店新订单</div>
                        <div class="info_detail">
                            <h1><span class="order_hotel_time"><?=$output['order_hotel_info']['startdate']?>至<?=$output['order_hotel_info']['enddate']?></span><span class="numdate"><?=$output['order_hotel_info']['numdate']?>晚</span>
                                <span><samp class="ticket_title"><?=$output['hotel_order_info']['ticket_title']?></samp><i class="fr member "><?=$output['hotel_order_info']['member_name']?></i></span>
                            </h1>
                            <p>提示：联系客人请拨打 <samp class="member_phone"><?=$output['hotel_order_info']['member_phone']?></samp></p>
                            <div class="money">
                                <span class="spec_name"><?=$output['hotel_order_info']['spec_name']?></span>
                                <div class="money_de fr">现付<span>RMB<i class="need_pay"><?=$output['hotel_order_info']['need_pay']?></i></span></div>
                            </div>
                            <div class="footer">
                                <span><a class="order_info" href="index.php?act=order&op=detail&order_id=<?php echo $output['hotel_order_info']['order_id']; ?>">查看详情</a></span>
                                <span class="color-orange">请立即处理</span>
                                <div class="fr">
                                    <button class="btn color-green agree_order" data-id="<?php echo $output['hotel_order_info']['order_id']; ?>">接受</button>
                                    <button class="btn refuse_order" data-id="<?php echo $output['hotel_order_info']['order_id']; ?>">拒接</button>
                                </div>
                            </div>
                        </div>
                    </div>

            <?php }else{ ?>

                    <div class="title">
                        <h1>0张未处理订单</h1>
                        <span class="new fr"><a href="#">刷新</a></span>
            <span class="fr remind">
                <input class="remind_message" type="checkbox" <?php echo $output['admin_info']['remind_message']?'checked':'' ?> />弹窗提醒
                <input type="checkbox" class="remind_voice" <?php echo $output['admin_info']['remind_voice']?'checked':'' ?> />开启声音提醒
            </span>
                    </div>
                    <div class="info">
                        <div class="color-green">无酒店新订单</div>
                        <div class="info_detail">
                            <h3 style="text-align:center;  height: 105px">等待接单中！！！</h3>
                        </div>
                    </div>

            <?php } ?>
        <?php } ?>
    <?php } ?>
  </dl>

    <!--    酒店-->
    <?php if($output['super'] || in_array("index.hotel",$output['my_permission'])){ ?>
        <dl class="trade">
            <dt>
            <div class="ico"><i></i><sub title="酒店订单"><span><em><?=$output['hotel_order']['total_count'] ?></em></span></sub></div>
            <h3>酒店订单</h3>
            <h5>交易订单及退款</h5>
            </dt>
            <dd>
                <ul>
                    <li class="w25pre <?php echo $output['hotel_order']['today_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order,trade,day=today&order_type=1');">今日订单<sub><em><?php echo $output['hotel_order']['today_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['hotel_order']['pay_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order,trade,search_status=10&order_type=1');" >待支付<sub><em><?php echo $output['hotel_order']['pay_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['hotel_order']['un_shoping_count']>0?'high':'none' ?>"><a href="#" onclick="parent.openItem('index,order,trade,search_status=20&order_type=1');">待核销<sub><em><?php echo $output['hotel_order']['un_shoping_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['hotel_order']['refund_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order_refund,trade,search_status=0&order_type=1');">退款中<sub><em><?php echo $output['hotel_order']['refund_count'] ?></em></sub></a></li>
                </ul>
            </dd>
        </dl>
    <?php } ?>

    <!--    门票订单-->
    <?php if($output['super'] || in_array("index.ticket",$output['my_permission'])){ ?>
        <dl class="trade">
            <dt>
            <div class="ico"><i></i><sub title="门票订单"><span><em><?php echo $output['ticket_order']['total_count'] ?></em></span></sub></div>
            <h3>门票订单</h3>
            <h5>交易订单及退款</h5>
            </dt>
            <dd>
                <ul>
                    <li class="w25pre <?php echo $output['ticket_order']['today_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order,trade,day=today&order_type=2');">今日订单<sub><em><?php echo $output['ticket_order']['today_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['ticket_order']['pay_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order,trade,search_status=10&order_type=2');" >待支付<sub><em><?php echo $output['ticket_order']['pay_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['ticket_order']['shoping_count']>0?'high':'none' ?>"><a href="#" onclick="parent.openItem('index,order,trade,search_status=20&order_type=2');">待核销<sub><em><?php echo $output['ticket_order']['shoping_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['ticket_order']['refund_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order_refund,trade,search_status=0&order_type=2');">退款中<sub><em><?php echo $output['ticket_order']['refund_count'] ?></em></sub></a></li>
                </ul>
            </dd>
        </dl>
    <?php } ?>

    <!--  旅行社  -->
    <?php if($output['super'] || in_array("index.itinerary",$output['my_permission'])){ ?>
        <dl class="trade">
            <dt>
            <div class="ico"><i></i><sub title="旅行社订单"><span><em><?php echo $output['itinerary_order']['total_count'] ?></em></span></sub></div>
            <h3>旅行社订单</h3>
            <h5>交易订单及退款</h5>
            </dt>
            <dd>
                <ul>
                    <li class="w25pre <?php echo $output['itinerary_order']['today_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order,trade,day=today&order_type=4');">今日订单<sub><em><?php echo $output['itinerary_order']['today_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['itinerary_order']['pay_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order,trade,search_status=10&order_type=4');" >待支付<sub><em><?php echo $output['itinerary_order']['pay_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['itinerary_order']['shoping_count']>0?'high':'none' ?>"><a href="#" onclick="parent.openItem('index,order,trade,search_status=20&order_type=4');">待核销<sub><em><?php echo $output['itinerary_order']['shoping_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['itinerary_order']['refund_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order_refund,trade,search_status=0&order_type=4');">退款中<sub><em><?php echo $output['itinerary_order']['refund_count'] ?></em></sub></a></li>
                </ul>
            </dd>
        </dl>
    <?php } ?>

    <!--  美食  -->
    <?php if($output['super'] || in_array("index.food",$output['my_permission'])){ ?>
        <dl class="trade">
            <dt>
            <div class="ico"><i></i><sub title="美食订单"><span><em><?php echo $output['food_order']['total_count'] ?></em></span></sub></div>
            <h3>美食订单</h3>
            <h5>交易订单及退款</h5>
            </dt>
            <dd>
                <ul>
                    <li class="w25pre <?php echo $output['food_order']['today_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order,trade,day=today&order_type=3');">今日订单<sub><em><?php echo $output['food_order']['today_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['food_order']['pay_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order,trade,search_status=10&order_type=3');" >待支付<sub><em><?php echo $output['food_order']['pay_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['food_order']['shoping_count']>0?'high':'none' ?>"><a href="#" onclick="parent.openItem('index,order,trade,search_status=20&order_type=3');">待核销<sub><em><?php echo $output['food_order']['shoping_count'] ?></em></sub></a></li>
                    <li class="w25pre <?php echo $output['food_order']['refund_count']>0?'high':'none' ?>"><a href="#"   onclick="parent.openItem('index,order_refund,search_status=0&order_type=3');">退款中<sub><em><?php echo $output['food_order']['refund_count'] ?></em></sub></a></li>
                </ul>
            </dd>
        </dl>
    <?php } ?>
      <?php if($output['super'] || in_array("index.hotel",$output['my_permission'])){ ?>
        <dl class="shop">
            <dt>
            <div class="ico"><i></i><sub title="酒店管理"><span><em><?php echo $output['hotel_count']['total_count'] ?></em></span></sub></div>
            <h3>酒店管理</h3>
            <h5>新增酒店/违规下架</h5>
            </dt>
            <dd>
                <ul>
                    <li class="w33pre <?php echo $output['hotel_count']['today_count']>0?'high':'none' ?>"><a href="#" onclick="parent.openItem('index,hotel,ticket,day=today');" >今日新增<sub><em><?php echo $output['hotel_count']['today_count'] ?></em></sub></a></li>
                    <li class="w33pre <?php echo $output['hotel_count']['sale_count']>0?"high":'none' ?> "><a href="#" onclick="parent.openItem('index,hotel,ticket,search_state=1');" >酒店上架<sub><em><?php echo $output['hotel_count']['sale_count'] ?></em></sub></a></li>
                    <li class="w33pre <?php echo $output['hotel_count']['un_sale_count']>0?"high":'none' ?>"><a href="#"  onclick="parent.openItem('index,hotel,ticket,search_state=0');">酒店下架<sub><em><?php echo $output['hotel_count']['un_sale_count'] ?></em></sub></a></li>
                </ul>
            </dd>
        </dl>
    <?php } ?>


    <?php if($output['super'] || in_array("index.ticket",$output['my_permission'])){ ?>
        <dl class="goods">
            <dt>
            <div class="ico"><i></i><sub title="门票管理"><span><em><?php echo $output['ticket_count']['total_count'] ?></em></span></sub></div>
            <h3>门票管理</h3>
            <h5>新增门票/违规下架</h5>
            </dt>
            <dd>
                <ul>
                    <li class="w33pre <?php echo $output['ticket_count']['today_count']>0?'high':'none' ?>"><a href="#" onclick="parent.openItem('index,ticket,ticket,day=today');" >今日新增<sub><em><?php echo $output['ticket_count']['today_count'] ?></em></sub></a></li>
                    <li class="w33pre <?php echo $output['ticket_count']['sale_count']>0?"high":'none' ?> "><a href="#" onclick="parent.openItem('index,ticket,ticket,search_state=1');" >门票上架<sub><em><?php echo $output['ticket_count']['sale_count'] ?></em></sub></a></li>
                    <li class="w33pre <?php echo $output['ticket_count']['un_sale_count']>0?"high":'none' ?>"><a href="#"  onclick="parent.openItem('index,ticket,ticket,search_state=0');">门票下架<sub><em><?php echo $output['ticket_count']['un_sale_count'] ?></em></sub></a></li>
                </ul>
            </dd>
        </dl>
    <?php } ?>


    <?php if($output['super'] || in_array("index.itinerary",$output['my_permission'])){ ?>
        <dl class="goods">
            <dt>
            <div class="ico"><i></i><sub title="旅行社管理"><span><em><?php echo $output['itinerary_count']['total_count'] ?></em></span></sub></div>
            <h3>旅行社管理</h3>
            <h5>新增线路/违规下架</h5>
            </dt>
            <dd>
                <ul>
                    <li class="w33pre <?php echo $output['itinerary_count']['today_count']>0?'high':'none' ?>"><a href="#" onclick="parent.openItem('index,itinerary,ticket,day=today');" >今日新增<sub><em><?php echo $output['itinerary_count']['today_count'] ?></em></sub></a></li>
                    <li class="w33pre <?php echo $output['itinerary_count']['sale_count']>0?"high":'none' ?> "><a href="#" onclick="parent.openItem('index,itinerary,ticket,search_state=1');" >线路上架<sub><em><?php echo $output['itinerary_count']['sale_count'] ?></em></sub></a></li>
                    <li class="w33pre <?php echo $output['itinerary_count']['un_sale_count']>0?"high":'none' ?>"><a href="#"  onclick="parent.openItem('index,itinerary,ticket,search_state=0');">线路下架<sub><em><?php echo $output['itinerary_count']['un_sale_count'] ?></em></sub></a></li>

                </ul>
            </dd>
        </dl>
    <?php } ?>


    <?php if($output['super'] || in_array("index.food",$output['my_permission'])){ ?>
        <dl class="goods">
            <dt>
            <div class="ico"><i></i><sub title="美食管理"><span><em><?php echo $output['food_count']['total_count'] ?></em></span></sub></div>
            <h3>美食管理</h3>
            <h5>新增美食/违规下架</h5>
            </dt>
            <dd>
                <ul>
                    <li class="w33pre <?php echo $output['food_count']['today_count']>0?'high':'none' ?>"><a href="#" onclick="parent.openItem('index,food,ticket,day=today');" >今日新增<sub><em><?php echo $output['food_count']['today_count'] ?></em></sub></a></li>
                    <li class="w33pre <?php echo $output['food_count']['sale_count']>0?"high":'none' ?> "><a href="#" onclick="parent.openItem('index,food,ticket,search_state=1');" >美食上架<sub><em><?php echo $output['food_count']['sale_count'] ?></em></sub></a></li>
                    <li class="w33pre <?php echo $output['food_count']['un_sale_count']>0?"high":'none' ?>"><a href="#"  onclick="parent.openItem('index,food,ticket,search_state=0');">美食下架<sub><em><?php echo $output['food_count']['un_sale_count'] ?></em></sub></a></li>
                </ul>
            </dd>
        </dl>
    <?php } ?>



    <?php if($output['super'] || in_array("index.hotel",$output['my_permission'])){ ?>
        <?php if($output['admin_info']['merchant_id']>0): ?>
            <dl class="operation">
                <dt>
                <div class="ico"><i></i><sub title=""><span><em>0</em></span></sub></div>
                <h3>房型状态控制</h3>
                <h5>管理房型每日销售状态</h5>
                </dt>
                <dd>
                    <ul>
                        <li class="w100pre none"><a href="index.php?act=hotel&op=close_hotel" onclick="">一键控制</a></li>
                    </ul>
                </dd>
            </dl>
        <?php endif; ?>
    <?php } ?>





      <?php if(empty($output['admin_info']['merchant_id'])){ ?>
          <dl class="operation">
              <dt>
              <div class="ico"><i></i></div>
              <h3><?php echo $lang['nc_operation'];?></h3>
              <h5>系统运营类设置及审核</h5>
              </dt>
              <dd>
                  <ul>
                      <li class="w50pre <?php echo $output['admin_count']['pd_cash_count']>0?'high':'none' ?>"><a href="#"  onclick=parent.openItem("index,pd_cash,member,search_status=0"); >提现申请<sub><em><?php echo $output['admin_count']['pd_cash_count'] ?></em></sub></a></li>
                      <li class="w50pre <?php echo $output['admin_count']['merchant_count']>0?'high':'none' ?>"><a href="#" onclick=parent.openItem("index,merchant,member,search_status=0");>商家申请<sub><em><?php echo $output['admin_count']['merchant_count'] ?></em></sub></a></li>
                  </ul>
              </dd>
          </dl>
      <?php } ?>

      <div class=" clear"></div>
  </div>

</div>


<script type="text/javascript">
    $(document).ready(function(){
        $('#system-info').perfectScrollbar();
    });


    $(".system").on('click','.new',function () {
        $.ajax({
            type:'post',
            url:'index.php?act=dashboard&op=refresh',
            data:{if_examine:2},
            dataType:'json',
            success:function(data){

                if(data.tab == 'success') {
                    var info =data.data;
                    var result = "";
                    if(info.length==0){
                        result+='<div class="title"><h1>0张未处理订单</h1><span class="new fr"><a href="#">刷新</a></span>';
                        if(data.admin.remind_message){
                            result += '<span class="fr remind"><input class="remind_message" checked type="checkbox"  />弹窗提醒';
                        }else{
                            result += '<span class="fr remind"><input class="remind_message" type="checkbox"  />弹窗提醒';
                        }
                        if(data.admin.remind_voice){
                            result += '<input type="checkbox" class="remind_voice" checked />开启声音提醒</span> </div>';
                        }else{
                            result += '<input type="checkbox" class="remind_voice" />开启声音提醒</span> </div>';
                        }
                        result += ' <div class="info"><div class="color-green">无酒店新订单</div> <div class="info_detail">';
                        result += ' <h3 style="text-align:center;  height: 105px">等待接单中！！！</h3></div> </div> ';
                    }else{
                        result += '<div class="title"><h1><samp class="hotel_un_operation">'+info.hotel_un_operation+'</samp>张未处理订单</h1>';
                        result += '<span class="new fr"><a href="#">刷新</a></span><span class="fr remind">';
                        if(data.admin.remind_message){
                            result += '<input name="remind_message" class="remind_message" checked type="checkbox"  />弹窗提醒';
                        }else{
                            result += '<input name="remind_message"  class="remind_message" type="checkbox"  />弹窗提醒';
                        }
                        if(data.admin.remind_voice){
                            result += '<input type="checkbox" class="remind_voice" checked />开启声音提醒';
                        }else{
                            result += '<input type="checkbox" class="remind_voice" />开启声音提醒';
                        }

                        result += '</span> </div><div class="info"> <div class="color-green">酒店新订单</div><div class="info_detail">';
                        result += '<h1><span class="order_hotel_time">'+info.order_hotel_info.startdate+'至'+info.order_hotel_info.enddate+'</span><span class="numdate">'+info.order_hotel_info.numdate+'晚</span>';
                        result += '<span><samp class="ticket_title">'+info.hotel_order_info.ticket_title+'</samp><i class="fr member ">'+info.hotel_order_info.member_name+'</i></span>';
                        result += '</h1> <p>提示：联系客人请拨打 <samp class="member_phone">'+info.hotel_order_info.member_phone+'</samp></p>';
                        result += ' <div class="money"> <span class="spec_name">'+info.hotel_order_info.spec_name+'</span>';
                        result += '  <div class="money_de fr">现付<span>RMB<i class="need_pay">'+info.hotel_order_info.need_pay+'</i></span></div>';
                        result += ' </div> <div class="footer">';
                        result += '<span><a class="order_info" href="index.php?act=order&op=detail&order_id='+info.hotel_order_info.order_id+'">查看详情</a></span>';
                        result += '  <span class="color-orange">请立即处理</span> <div class="fr">';
                        result += '<button class="btn color-green agree_order" data-id="'+info.hotel_order_info.order_id+'">接受</button>';
                        result += ' <button class="btn refuse_order" data-id="'+info.hotel_order_info.order_id+'">拒接</button>';
                        result += '</div> </div></div></div> ';
                    }
                    $(".system").html(result);
                }else{
                    layer.msg(data.info,{icon: 5});
                }
            }
        });
    });


    $(".system").on('click','.refuse_order',function(){
        var order_id = $(this).attr("data-id");
        layer.confirm('您是否确定拒绝该订单？', {
            btn: ['确认','取消'] //按钮
        }, function(){
            $.ajax({
                type:'post',
                url:'index.php?act=order&op=examine_order',
                data:{order_id:order_id,if_examine:2},
                dataType:'json',
                success:function(data){
                    if(data.res == 1) {
                        layer.msg("操作成功",{icon: 1});
                        setTimeout(function(){window.location.reload()}, 500);
                    }else{
                        layer.msg(data._msg,{icon: 5});
                        setTimeout(function(){window.location.reload()}, 500);
                    }
                }
            });
        }, function(){
            layer.msg('取消操作',{icon: 5});
        });
    });

    $(".system").on('click','.agree_order',function(){
        var order_id = $(this).attr("data-id");
        layer.confirm('您是否确定同意该订单？', {
            btn: ['确认','取消'] //按钮
        }, function(){
            $.ajax({
                type:'post',
                url:'index.php?act=order&op=examine_order',
                data:{order_id:order_id,if_examine:1},
                dataType:'json',
                success:function(data){
                    if(data.res == 1) {
                        layer.msg("操作成功",{icon: 1});
                        setTimeout(function(){window.location.reload()}, 500);
                    }else{
                        layer.msg(data._msg,{icon: 5});
                        setTimeout(function(){window.location.reload()}, 500);
                    }
                }
            });
        }, function(){
            layer.msg('取消操作',{icon: 5});
        });
    });

    $(".system").on('click','.remind_voice',function(){
        var remind_voice = $(this).is(':checked');
        $.ajax({
            type:'post',
            url:'index.php?act=dashboard&op=is_remind_voice',
            data:{remind_voice:remind_voice},
            dataType:'json',
            success:function(data){
                if(data.tab == 'success') {
                    layer.msg(data.info,{icon: 1});
                }else{
                    layer.msg(data.info,{icon: 5});
                }
            }
        });
    });

    $(".system").on('click','.remind_message',function(){
        var remind_message = $(this).is(':checked');
        $.ajax({
            type:'post',
            url:'index.php?act=dashboard&op=is_remind_message',
            data:{remind_message:remind_message},
            dataType:'json',
            success:function(data){
                if(data.tab == 'success') {
                    layer.msg(data.info,{icon: 1});
                }else{
                    layer.msg(data.info,{icon: 5});
                }
            }
        });
    });

</script>
